package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.social.daoEx.model.TopicCategoryEx;
import com.zch.dao.ZaitiMapper;
import com.zch.dao.model.Zaiti;
import com.zch.dao.model.ZaitiExample;
import com.zch.daoEx.ZaitiMapperEx;
import com.zch.daoEx.model.ZaitiEx;

@Service
public class ZaitiService {
	@Autowired
	private ZaitiMapper zaitiMapper;
	
	   @Autowired
	    private ZaitiMapperEx zaitiMapperEx;

	public int countByExample(ZaitiExample example) {
		return this.zaitiMapper.countByExample(example);
	}

	public Zaiti selectByPrimaryKey(String id) {
		return this.zaitiMapper.selectByPrimaryKey(id);
	}

	public List<Zaiti> selectByExample(ZaitiExample example) {
		return this.zaitiMapper.selectByExample(example);
	}


	public int deleteByPrimaryKey(String id) {
		return this.zaitiMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Zaiti record) {
		return this.zaitiMapper.updateByPrimaryKeySelective(record);
	}


	public int updateByPrimaryKey(Zaiti record) {
		return this.zaitiMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ZaitiExample example) {
		return this.zaitiMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(Zaiti record, ZaitiExample example) {
		return this.zaitiMapper.updateByExampleSelective(record, example);
	}


	public int updateByExample(Zaiti record, ZaitiExample example) {
		return this.zaitiMapper.updateByExample(record, example);
	}

	public int insert(Zaiti record) {
		return this.zaitiMapper.insert(record);
	}

	public int insertSelective(Zaiti record) {
		return this.zaitiMapper.insertSelective(record);
	}

    public ZaitiEx selectAppDetailLists(Map<String, Object> map) {
        return zaitiMapperEx.selectAppDetailLists(map);
    }

    public List<ZaitiEx> selectAppList(Map<String, Object> map) {
        return zaitiMapperEx.selectAppList(map);
    }

    public List<ZaitiEx> selectList(Map<String, Object> map) {
        return zaitiMapperEx.selectList(map);
    }

    public List<ZaitiEx> selectMyList(Map<String, Object> map) {
        return zaitiMapperEx.selectMyList(map);
    }

    public int cancleTops(Map<String, Object> map) {
        return zaitiMapperEx.cancleTops(map);
    }
}
